package com.sz.biz.logistics.core.dto;

import com.sz.biz.logistics.core.entity.Quotation;
import com.sz.biz.logistics.core.entity.QuotationStart;
import com.sz.biz.common.base.dto.CountryArea;

import java.util.ArrayList;
import java.util.List;

/**
 * Function: 报价方案Dto. <br>
 * Date: 2017年03月20日 14:36 <br>
 * Author: wentao.chang
 */
public class QuotationDto extends Quotation {

    private static final long serialVersionUID = 4549860854819902946L;

    private String currencyName;
    private String settlementTypeName;
    private String settlementTypeCode;

    private String creatorUserName;
    private String cargoTypeName;
    private String serviceName;
    private Integer productid;
    private String productUid;
    private String productName;

    private String statusName;
    private String starts;
    private String onlineStateName;
    private String gradeTypeName;
    private String gradeName;
    private String gradeOrCustomerName;

    private String customerName;
    private String weightName;
    private String regionName;

    private boolean isEnable;

    /**
     * 起点
     */
    private List<CountryArea> areas = new ArrayList<>();

    /**
     * 成本价二级
     */
    private List<QuotationSetDto> costSets = new ArrayList<>();

    /**
     * 销售价二级
     */
    private List<QuotationServiceTypesDto> saleSets = new ArrayList<>();

    /**
     * 报价运算使用
     */
    private transient List<QuotationStart> quotationStarts = new ArrayList<>();


    public String getOnlineStateName() {
        return onlineStateName;
    }

    public void setOnlineStateName(String onlineStateName) {
        this.onlineStateName = onlineStateName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getStarts() {
        return starts;
    }

    public void setStarts(String starts) {
        this.starts = starts;
    }

    public List<CountryArea> getAreas() {
        return areas;
    }

    public void setAreas(List<CountryArea> areas) {
        this.areas = areas;
    }

    public String getWeightName() {
        return weightName;
    }

    public void setWeightName(String weightName) {
        this.weightName = weightName;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }


    public String getCurrencyName() {
        return currencyName;
    }

    public void setCurrencyName(String currencyName) {
        this.currencyName = currencyName;
    }

    public String getSettlementTypeName() {
        return settlementTypeName;
    }

    public void setSettlementTypeName(String settlementTypeName) {
        this.settlementTypeName = settlementTypeName;
    }


    public String getCreatorUserName() {
        return creatorUserName;
    }

    public void setCreatorUserName(String creatorUserName) {
        this.creatorUserName = creatorUserName;
    }

    public String getCargoTypeName() {
        return cargoTypeName;
    }

    public void setCargoTypeName(String cargoTypeName) {
        this.cargoTypeName = cargoTypeName;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    /**
     * 向地区中添加数据
     *
     * @param area
     */
    public void putArea(CountryArea area) {
        areas.add(area);
    }


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getGradeTypeName() {
        return gradeTypeName;
    }

    public void setGradeTypeName(String gradeTypeName) {
        this.gradeTypeName = gradeTypeName;
    }

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<QuotationStart> getQuotationStarts() {
        return quotationStarts;
    }

    public void setQuotationStarts(List<QuotationStart> quotationStarts) {
        this.quotationStarts = quotationStarts;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getGradeOrCustomerName() {
        return gradeOrCustomerName;
    }

    public void setGradeOrCustomerName(String gradeOrCustomerName) {
        this.gradeOrCustomerName = gradeOrCustomerName;
    }

    public List<QuotationSetDto> getCostSets() {
        return costSets;
    }

    public void setCostSets(List<QuotationSetDto> costSets) {
        this.costSets = costSets;
    }

    public List<QuotationServiceTypesDto> getSaleSets() {
        return saleSets;
    }

    public void setSaleSets(List<QuotationServiceTypesDto> saleSets) {
        this.saleSets = saleSets;
    }

    public String getSettlementTypeCode() {
        return settlementTypeCode;
    }

    public void setSettlementTypeCode(String settlementTypeCode) {
        this.settlementTypeCode = settlementTypeCode;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public String getProductUid() {
        return productUid;
    }

    public void setProductUid(String productUid) {
        this.productUid = productUid;
    }
}
